// components/navbar/index.js
const App = getApp();

Component({
  options: {
    addGlobalClass: true,
  },
  /**
   * 组件的属性列表
   */
  properties: {
    isLoading: {
      type: Boolean,
      value: false
    },
    pageName:String,
  },

  /**
   * 组件的初始数据
   */
  data: {
   
  },
  lifetimes: {
    attached: function () {
      this.setData({
        navHeight: App.globalData.navHeight,
        navTop: App.globalData.navTop,
        bgColor: this.data.bgColor||App.globalData.bgColor,
        color: this.data.color||App.globalData.color
      })
     }
  },
  /**
   * 组件的方法列表
   */
  methods: {
  },
})